package com.powernode.ssm.utils;

public enum ReturnCodeEnum {

    FAIL(-1,"失败"),
    SUCCESS(0,"成功"),
    APPINFO_NOT_FOUND(1,"应用数据不存在"),
    SAME_RECORD_ERR(2,"存在相同记录"),
    IMPORT_FIELD_EMPTY_ERR(3, "上传文件中不能存在空的单元格"),
    IMPORT_FORMAT_OR_EMPTY_ERR(4, "上传文件格式错误或者数据为空"),
    IMPORT_FILE_ERR(5, "导入失败"),
    USER_NOT_FOUND(6, "用户不存在"),
    PASSWORD_ERR(7, "密码不正确"),
    MISS_TOKEN_ERR(401, "token没有携带"),
    ILLEGAL_TOKEN_ERR(402, "token非法，请重新登陆!"),
    LOGIN_BUSY_ERR(403, "登录尝试过于频繁，请稍后再试!"),
    LOGIN_BLOCK_ERR(404, "该IP已被封禁，拒绝登录!"),

    ;
    private int code;
    private String msg;

    ReturnCodeEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
